
#include <stdint.h>
#include "apt32f102_ifc.h"
#include "UI.h"
#include "Flash_WR.h"
#include "Keyboard.h"


void Flash_Write(void)
{
    EnIFCClk;
    Page_ProgramData3(PROM_PageAdd30,16,UI_System.Pset);	
    SYSCON_IWDCNT_Reload(); 
}

void Flash_Read(void)
{
	EnIFCClk;
	ReadDataArry2(PROM_PageAdd30,16,&(UI_System.Pset));
	SYSCON_IWDCNT_Reload();
    if((UI_System.Pset < PSet_0) || (UI_System.Pset > PSet_7))  UI_System.Pset = PSet_4;
}
